<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>${applicationScope.ojName}</title>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/amazeui.min.css"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/amazeui.flat.min.css"/>
    <style>
        .main {
            width: 60%;
            margin: 0 auto;
        }

        .title h2 {
            font-size: 2em;
            width: 100%;
            text-align: center;
        }
    </style>
</head>

<body>

<header class="am-topbar am-topbar-inverse" style="padding: 0;margin: 0;">
    <div class="main">
        <h1 class="am-topbar-brand">
            <a href="#">${applicationScope.ojName}</a>
        </h1>

        <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
            <ul class="am-nav am-nav-pills am-topbar-nav">
                <li>
                    <a href="${pageContext.request.contextPath}/contest.html">返回首页</a>
                </li>
                <li class="am-active">
                    <a href="#">比赛题目</a>
                </li>
                <li>
                    <a href="#">比赛状态</a>
                </li>
                <li>
                    <a href="#">比赛排名</a>
                </li>
            </ul>

            <div class="am-topbar-right">
                <c:choose>
                    <c:when test="${sessionScope.user eq null}">
                        <a href="${pageContext.request.contextPath}/login.html"
                           class="am-btn am-btn-primary am-topbar-btn am-btn-sm">登录 / 注册 </a>
                    </c:when>
                    <c:otherwise>
                        <a href="${pageContext.request.contextPath}/userinfo.html"
                           class="am-btn am-btn-primary am-topbar-btn am-btn-sm">${sessionScope.user.nick}</a>
                    </c:otherwise>
                </c:choose>
            </div>
        </div>
    </div>
</header>

<div class="main">
    <h1>
        比赛不存在或已停用
    </h1>
    <a class="am-btn am-btn-primary" href="${pageContext.request.contextPath}/contest.html">返回</a>
</div>
<jsp:include page="/foot.html" flush="true"/>

</body>

</html>